//
//  YBNetworking.h
//  TableviewNestCollectionview
//
//  Created by 岚海网络 on 2018/12/20.
//  Copyright © 2018年 ljm. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef void (^PullSuccessBlock)(NSDictionary *data,NSString *code,NSString *msg);
typedef void (^PullFailBlock)(id fail);

@interface YBNetworking : NSObject

/**
 网络封装
 @param url 接口名称
 @param dic 接口参数dic
 @param sucBack 成功回调
 @param failBack 失败回调
 */
+(void)postWithUrl:(NSString *)url Dic:(NSDictionary *)dic Suc:(PullSuccessBlock)sucBack Fail:(PullFailBlock)failBack;

@end

NS_ASSUME_NONNULL_END
